<?php
namespace App\Models;

/**
 * Model Campus
 *
 * @property int $id
 * @property int $school_id
 * @property string $campus_name
 * @property string $address
 * @property string $province
 * @property string $city
 * @property string $area
 * @property string $created_at
 * @property string $updated_at
 * @property string $deleted_at
 *
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus where($column, $operator = null, $value = null, $boolean = 'and')
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus whereIn($column, $values, $boolean = 'and', $not = false)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus leftJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus rightJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus get($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus find($id, $columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus first($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus select($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Campus orderBy($column, $direction = 'asc')
 * @package App\Model
 */
class Campus extends BaseModel
{
    protected $table = 'campus';

    protected $fillable = ["campus_name", 'province', 'city', 'area', 'school_id', 'address'];

    public function schoolUsers()
    {
        return $this->hasMany(SchoolUser::class);
    }

}
